/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xos_http.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __MSG_FAST_MSG_FAST_H__
#define __MSG_FAST_MSG_FAST_H__

namespace xos_http
{

    class msg_fast
    {
    public:
        msg_fast();
        ~msg_fast();

    protected:
        int fast_parse_request( xos_box::i_msg *& pMsg );
        int fast_parse_failed( xos_box::i_msg *& pMsg );
        int fast_process( xos_box::i_msg *& pMsg );
        int fast_compose_return( xos_box::i_msg *& pMsg );
        int fast_send( xos_box::i_msg *& pMsg );

    public:
        int proc( xos_box::i_msg *& pMsg );

    };

} // xos_http

#endif // __MSG_FAST_MSG_FAST_H__
